package com.deyuanyun.pic.pig.controller.vo;

import com.deyuanyun.pic.common.util.StringUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author lijun
 * @date 2016-09-23
 * 管道定标点
 * History: [修改人][时间][修改描述]
 */
public class TrackPointVO {
    private String id;
    //定标点名称
    private String pointName;
    //定标点类型
    private String pointType;
    //行政地域名称
    //private String regionName;
    //位置描述
    private String locationDescription;
    //管道名称
    private String lineName;
    //绝对距离
    private BigDecimal mileage;
    //附近参考点
    private String reference;
    //距离参考点距离
    private Double referenceDistance;
    //备注
    private String remark;
    //gisId
    private String gisId;
    //自定义编号
    private String customnumber;
    //该跟踪点是否存在对应任务的跟踪点通过记录
    private String isPassRecord;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPointName() {
        return pointName;
    }

    public void setPointName(String pointName) {
        this.pointName = pointName;
    }

    public String getPointType() {
        return pointType;
    }

    public void setPointType(String pointType) {
        this.pointType = pointType;
    }

//    public String getRegionName() {
//        return regionName;
//    }
//
//    public void setRegionName(String regionName) {
//        this.regionName = regionName;
//    }


    public String getLocationDescription() {
        return locationDescription;
    }

    public void setLocationDescription(String locationDescription) {
        this.locationDescription = locationDescription;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public BigDecimal getMileage() {
        return mileage;
    }

    public void setMileage(BigDecimal mileage) {
        this.mileage = mileage;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public Double getReferenceDistance() {
        return referenceDistance;
    }

    public void setReferenceDistance(Double referenceDistance) {
        this.referenceDistance = reference != null?referenceDistance:null;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGisId() {
        return gisId;
    }

    public void setGisId(String gisId) {
        this.gisId = gisId;
    }

    public String getCustomnumber() {
        return customnumber;
    }

    public void setCustomnumber(String customnumber) {
        this.customnumber = customnumber;
    }

    public String getIsPassRecord() {
        return StringUtils.isNotNullEmpty(isPassRecord)?"Y":"N";
    }

    public void setIsPassRecord(String isPassRecord) {
        this.isPassRecord = isPassRecord;
    }
}
